// 生成随机字符串
const randStr = (num = 6) => {
  const str = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
  let res = ''
  for (let i = 0; i < num; i++) {
    res += str[Math.floor(Math.random() * str.length)]
  }
  return res
}

module.exports = {
  randStr,
}
